xen: arm: correct return value of raw_copy_{to/from}_guest_*, raw_clear_guest
authorIan Campbell <ian.campbell@citrix.com>
Mon, 9 Dec 2013 12:13:48 +0000 (12:13 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 9 Dec 2013 15:31:39 +0000 (15:31 +0000)
commitd96392361cd05a66b385f0153e398128b196e480
tree8087c6a4fb0625f3bb3383d120c031abbc422a7f
parent2c7a21dd65d4f4a822f20d9d9e18fba027270aa5
xen: arm: correct return value of raw_copy_{to/from}_guest_*, raw_clear_guest

This is a generic interface which is supposed to return the number of bytes
which were not copied. Make it so.

Update the incorrect callers prepare_dtb, decode_thumb{2} and
xenmem_add_to_physmap_range.

In the xenmem_add_to_physmap_range case, observe that we are not propagating
errors from xenmem_add_to_physmap_one and do so.

In the decode_thumb case and an emacs magic block to decode.c

Make the flush_dcache parameter to the helper an int while at it.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/decode.c
xen/arch/arm/domain_build.c
xen/arch/arm/guestcopy.c
xen/arch/arm/mm.c